Clock 2.0
Source
Clock.java (the main program), Needle.java (the Needle class)
Supported actions
- mouseEnter
- The message "Who made this clock?" will appear in the status bar
- mouseExit
- The status bar will be blank
- mouseDown
- The browser will load this page
Supported tags
Tags which affect the whole clock
num_lines
Numer of corners in the border around the clock.
Min: 3 Default: 12 Max:1000
sleep
The time (in milliseconds) the applet waits between each update.
Min: 5 Default: 1000 Max:20000
timezone
The GMT timezone that the clock will display (Sweden=1, England=0, Finland=2 etc).
Min: -12 Default: your local timezone Max: 12
If this tag is omitted the clock will display the local timezone.
clock_background_col
The color of the clockbackground.
Default: 207,207,207 (gray)
clock_background_border_col
The color of the border of the clockbackground.
Default: 207,207,207 (gray)
background_col
The color of the background.
Default: 192,192,192 (lightgray)
clock_background_border_col
The color of the border of the background.
Default: 192,192,192 (lightgray)
Tags which affect each needle
col
The color of the needle.
Default hour_col: 255,0,0 (red) minute_col: 0,255,0 (green) second_col: 0,0,255 (blue)
border_col
The color of the border of the needle.
Default hour_border_col: 0,0,0 (black) minute_border_col: 0,0,0 (black) second_border_col: 0,0,0 (black)
type
The type of the needle. 0=No needle, 1=Triangle, 2=Rectangle, 3=Romb. Default hour_type: 3 minute_type: 3 second_type: 3
width
The width of the needle.
Default hour_width: 7 minute_width: 5 second_width: 3
len
The length of the needle in % of the clock.
Default hour_len: 70 minute_len: 75 second_len: 90
These applets have been written by Nizze